/*-------------------------------------------------------- 
* Module Name : OLDialog
* Version : 1.0
* 
* Software Name : Qt App Template
* Version : 1.0
*
* Copyright � 2010 � 2011 France T�l�com
* This software is distributed under the LGPL v2.1 license,
* the text of which is available at http://www.gnu.org/licenses/lgpl-2.1.html
* or see the "LICENSE.txt" file for more details.
*
*--------------------------------------------------------
* File Name   : OLDialog.h
*
* Created     : 07 June 2011
* Author(s)   : Omer Saleem
*
* Description :
* The dialog object. This is a standard dialog that always
* has a close button and can be configured to support actions
* buttons and layouts of any UI elements.
*
*--------------------------------------------------------
* 1.0 - First open source release
*
*/

#ifndef OLDIALOG_H
#define OLDIALOG_H

#include <QWidget>

#include "OLApplication.h"

class QLabel;
class QLayout;
class OLDialogTitle;

class OLDialog : public QWidget
{
    Q_OBJECT

public:
    OLDialog(OLDialogTitle* title, QLayout* body, const OLButtonList& buttons, QWidget *parent);

signals:
    void dismissDialog();

public slots:
    void handlePortrait();
    void handleLandscape();

private:
    OLDialogTitle* m_dialogtitle;
    QWidget* m_body;
    OLButtonList m_buttons;
};

#endif // OLDIALOG_H
